<template>
<div class="tab">
  <router-link tag="div" class="tab-item" to="/recommend">
    <span class="tab-link">首页</span>
  </router-link>
  <router-link tag="div" class="tab-item" to="/singer">
    <span class="tab-link">你好</span>
  </router-link>
  <router-link tag="div" class="tab-item" to="/rank">
    <span class="tab-link">我号
      </span>
  </router-link>
  <router-link tag="div" class="tab-item" to="/search">
    <span class="tab-link">喔的</span>
  </router-link>
</div>
</template>

<script type="text/ecmascript-6">
export default {}
</script>

<style scoped lang="less" >
.tab {
    display: flex;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: #fff;
    .tab-item {
        flex: 1;
        text-align: center;
        .tab-link {
            padding-bottom: 5px;
            color: #333;
        }
        &.router-link-active {
            .tab-link {
                color:#1973bf;
                border-bottom: 2px solid #1973bf;
            }
        }
    }
  }
</style>
